﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;

namespace NewEditorNS
{
    public class CtrlPoint : MonoBehaviour, IMouseCtrl, ISelectable
    {
        bool showSelect;
        public bool ShowSelect
        {
            get
            {
                return showSelect;
            }
            set
            {
                showSelect = value;
                if (showSelect)
                    ColorManager.GetIns().ChangeColor(this, Color.red);
                else
                    ColorManager.GetIns().RevertColor(this);
            }
        }

        public void MouseClick(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void MouseDoubleClick(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void MouseDown(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void MouseUp(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void OnDragEnd(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void OnDraging(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }

        public void OnDragStart(Vector2 screenPoint, Vector3 worldPoint, int mouse)
        {
        }
    }
}
